package model;

public class Event {
    private String eventType;
    private int eventId;
    private String moment;
    private Match match;
    private Player player;

    public Event(int eventId, String eventType, String moment,Match match,Player player) {
        this.eventId = eventId;
        this.eventType = eventType;
        this.moment = moment;
        this.match = match;
        this.player = player;
    }

    public Match getMatch() {
        return match;
    }

    public void setMatch(Match match) {
        this.match = match;
    }

    public Player getPlayer() {
        return player;
    }

    public void setPlayer(Player player) {
        this.player = player;
    }

    public String getEventType() {
        return eventType;
    }

    public void setEventType(String eventType) {
        this.eventType = eventType;
    }

    public int getEventId() {
        return eventId;
    }

    public void setEventId(int eventId) {
        this.eventId = eventId;
    }

    public String getMoment() {
        return moment;
    }

    public void setMoment(String moment) {
        this.moment = moment;
    }
    
    @Override
    public String toString(){
        String str = moment + "min: " + player.getFirstName() + " ";
        str += player.getLastName() + ": " + eventType;
        return str;
    }
    
    
    
}
